<template>
    <div>
        <h3>这里是about组件{{getNum}}</h3>
    </div>
</template>
<script>
//mapstate mapgetter 写在computed里
//mapmutation mapactions 写在method里面
import {mapGetters} from 'vuex'
export default {
    computed:{
        // num(){
        //     return this.$store.state.num
        // }

        ...mapGetters(['getNum'])
    }
}
</script>